@import './variables.less';
@import './mixins.less';
@import './common.less';

.common-wrapper {
    background-image: url('@{images}/stat_Bg.png');
    background-size: 750px auto;
    background-repeat: no-repeat;
}

.stat-stat {
    border-radius: 24px;
    margin: 32px auto 0;
    width: 690px;
    height: 213px;
    background-color: #fff;
    border-radius: 24px;

    .left {
        margin-top: 13px;
        width: 345px;
        height: 213px;
        position: relative;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        .v {
            width: 100%;
            text-align: center;
            font-size: 48px;
            line-height: 57px;
        }

        .t {
            width: 100%;
            text-align: center;
        }
    }


    .t {
        font-family: @font;
        color: #999999;
        font-size: 24px;
        line-height: 32px;
    }

    .v {
        font-family: @font-rb;
        font-weight: 500;
        color: #303233;
        margin-bottom: 20px;
    }

    .line {
        position: absolute;
        right: 0;
        top: 60px;
        width: 2px;
        height: 100px;
        background-color: #F2F4F5;
    }
}

.stat-header {
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 26px;
    padding-left: 55px;
    padding-right: 30px;

    .title {
        font-size: 32px;
        font-family: @font-sb;
        font-weight: 600;
        color: #333333;
        line-height: 45px;
    }
}

.stat-content {
    padding: 0 30px;
    padding-bottom: 20px;
    height: 100%;
    // padding-bottom: 20px;
}

.dataList {
    height: 100%;

    .itemBox {
        background-color: #FFFFFF;
        padding: 0 30px;
        border-radius: 40px;
        flex-direction: column;
    }

    .item {
        width: 100%;
        height: 163px;
        border-top: 1px solid #E8E8E8;
        align-items: center;

        &-first {
            border-top: 1px solid transparent;
        }
    }

    .left {
        width: 123px;
        flex-direction: column;
        position: relative;
        justify-content: center;
        flex-shrink: 0;

        .line {
            width: 1px;
            height: 39px;
            background-color: #E8E8E8;
            position: absolute;
            right: 0;
        }

        .timeBox {
            align-items: flex-end;
        }

        .time {
            font-size: 48px;
            font-family: @font-rb;
            font-weight: bold;
            color: #383838;
            line-height: 57px;
        }

        .icon-ri {
            width: 28px;
            height: 40px;
            margin-bottom: 4px;
            background-image: url("@{images}/icon-ri.png");
            background-size: 28px 40px;
        }

        .date {
            font-size: 24px;
            font-family: @font;
            font-weight: 400;
            color: #383838;
            line-height: 33px;
        }
    }

    .right {
        flex-direction: column;
        width: 100%;

        .sum {
            font-size: 30px;
            font-family: @font-rb;
            font-weight: 500;
            color: #252829;
            line-height: 35px;
            margin-bottom: 6px;
            padding-left: 30px;
        }

        .s,
        .z {
            // width: 268px;
            width: 50%;
            flex-wrap: wrap;
            align-items: flex-start;
            padding-left: 30px;

            image {
                height: 28px;
                margin-right: 6px;
            }

            text {
                font-size: 24px;
                font-family: @font;
                font-weight: 400;
                color: #999999;
                line-height: 24px;
                flex-shrink: 0;
            }
        }
    }
}

.chartList {
    height: 100%;
    background-color: #fff;
    border-radius: 24px;

    .pieItem {
        flex-direction: column;
        // background-color: #E8E8E8;
        align-items: center;
        margin-bottom: 50px;
    }

    .pieWrap {
        height: 430px;
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 20px;

        .title {
            font-size: 24px;
            font-family: @font;
            font-weight: 400;
            color: #999999;
            line-height: 28px;
        }

        .value {
            margin-top: 7px;
            font-size: 32px;
            font-family: @font-rb;
            font-weight: 500;
            color: #333333;
            line-height: 32px;
        }
    }

    .chart {
        width: 600px;
        height: 430px;
        position: absolute;
    }

    .optionBar {
        width: 208px;
        height: 56px;
        background-color: #EEEEEE;
        border-radius: 27px;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        padding: 0 4px;

        text {
            font-size: 24px;
            font-family: @font;
            font-weight: 400;
            color: #333333;
            line-height: 33px;
            width: 100px;
            height: 48px;
            border-radius: 27px;
            text-align: center;
        }

        .on {
            font-family: @font-md;
            background-color: #FFFDFE;
            font-weight: 500;
        }
    }

    .chartItem {
        height: 124px;
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        border-radius: 20px;
        margin-bottom: 20px;

        .header {
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 17px;
        }

        .lf {
            align-items: flex-end;
        }

        .sorts {
            width: 38px;
            height: 38px;
            margin-right: 20px;
            align-items: flex-end;
            justify-content: center;

            image {
                width: 38px;
                height: 38px;
            }

            text {
                font-size: 24px;
                font-family: @font-sb;
                font-weight: 600;
                color: #999999;
                line-height: 33px;
            }
        }

        .name {
            font-size: 28px;
            font-family: @font-sb;
            font-weight: 600;
            color: #252829;
            line-height: 36px;
            margin-right: 10px;
        }

        .des {
            font-size: 22px;
            font-family: @font;
            font-weight: 400;
            color: #999999;
            line-height: 30px;
            margin-right: 10px;
        }

        .val {
            font-size: 28px;
            font-family: @font-rb;
            font-weight: 500;
            color: #252829;
            line-height: 33px;
        }

        .progress {
            stroke-width: 12px;
        }
    }

    .first {
        border-top: 1px solid transparent;
    }
}

.stat-select {
    width: 150px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(224deg, #2792F5 0%, #3462FF 100%);
    padding-left: 24px;
    font-size: 28px;
    font-family: @font;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 54px;

    &-title {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        .first {
            width: 120px;
            padding-top: 32px;
            padding-bottom: 11px;
        }

        .second {
            width: 120px;
            padding-top: 10px;
            padding-bottom: 24px;
            border-top: 2px solid #F5F5F5;
        }

        text {
            font-size: 24px;
            font-family: @font;
            font-weight: 400;
            color: #333333;
            line-height: 28px;
            text-align: center;
            width: 100%;
            text-align: center;
            height: 28px;
        }
    }

}

.pop-select {
    position: relative;

    .icon {
        position: absolute;
        right: 12px;
        top: 12px;
        width: 30px;
        height: 30px;
        background-size: 30px 30px;
        background-image: url('@{images}/icon-down.png');
        background-repeat: no-repeat;
        background-position: right center;
    }

    .stat-select-title {
        position: fixed;
        height: 154px;
        width: 196px;
        background-image: url("@{images}/pop-shadow.png");
        background-size: 196px 154px;
        background-repeat: no-repeat;
        background-position: center top;
        z-index: 1;
        flex-direction: column;
    }

    .mask {
        position: fixed;
        height: 100%;
        width: 100%;
        z-index: 0;
    }
}

.infoflow {
    width: 690px;
    margin: 0 auto;
    justify-content: center;
    margin-top: 20px;
    flex-shrink: 0;
}



.datePicker {
    flex-shrink: 0;
    padding-left: 35px;
    margin-top: 20px;

    .picker {
        font-size: 32px;
        font-family: @font-sb;
        font-weight: 600;
        color: #fff;
        line-height: 45px;
        background-size: 36px 36px;
        background-image: url('@{images}/icon-down.png');
        background-repeat: no-repeat;
        background-position: right center;
        padding-right: 36px;
    }
}